New-GSDrive

SYNOPSIS

Creates a new Shared Drive

SYNTAX

New-GSDrive [-Name] <String> [-User <String>] [-RequestId <String>] [-CanAddChildren]
 [-CanChangeDriveBackground] [-CanComment] [-CanCopy] [-CanDeleteDrive] [-CanDownload] [-CanEdit]
 [-CanListChildren] [-CanManageMembers] [-CanReadRevisions] [-CanRemoveChildren] [-CanRename] [-CanRenameDrive]
 [-CanShare] [<CommonParameters>]

DESCRIPTION

Creates a new Shared Drive

EXAMPLES

EXAMPLE 1

New-GSDrive -Name "Training Docs"

Creates a new Shared Drive named "Training Docs"

PARAMETERS

-CanAddChildren

Whether the current user can add children to folders in this Shared Drive

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-CanChangeDriveBackground

Whether the current user can change the background of this Shared Drive

Type: SwitchParameter
Parameter Sets: (All)
Aliases: CanChangeTeamDriveBackground

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-CanComment

Whether the current user can comment on files in this Shared Drive

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-CanCopy

Whether the current user can copy files in this Shared Drive

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-CanDeleteDrive

Whether the current user can delete this Shared Drive. Attempting to delete the Shared Drive may still fail if there are untrashed items inside the Shared Drive

Type: SwitchParameter
Parameter Sets: (All)
Aliases: CanDeleteTeamDrive

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-CanDownload

Whether the current user can download files in this Shared Drive

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-CanEdit

Whether the current user can edit files in this Shared Drive

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-CanListChildren

Whether the current user can list the children of folders in this Shared Drive

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-CanManageMembers

Whether the current user can add members to this Shared Drive or remove them or change their role

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-CanReadRevisions

Whether the current user can read the revisions resource of files in this Shared Drive

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-CanRemoveChildren

Whether the current user can remove children from folders in this Shared Drive

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-CanRename

Whether the current user can rename files or folders in this Shared Drive

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-CanRenameDrive

Whether the current user can rename this Shared Drive

Type: SwitchParameter
Parameter Sets: (All)
Aliases: CanRenameTeamDrive

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-CanShare

Whether the current user can share files or folders in this Shared Drive

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Name

The name of the Shared Drive

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RequestId

An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a Shared Drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same Shared Drive. If the Shared Drive already exists a 409 error will be returned.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: (New-Guid).ToString('N')
Accept pipeline input: False
Accept wildcard characters: False

-User

The user to create the Shared Drive for (must have permissions to create Shared Drives)

Type: String
Parameter Sets: (All)
Aliases: Owner, PrimaryEmail, UserKey, Mail

Required: False
Position: Named
Default value: $Script:PSGSuite.AdminEmail
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

Google.Apis.Drive.v3.Data.Drive

NOTES

Comments